/**
 * Created by Administrator on 2018/1/18.
 */
(function($){

    $.extend({
        alert:function(title,msg,btn){
            var dom="<div class=\"am-modal am-modal-alert\" tabindex=\"-1\" id=\"alertModal\"> <div class=\"am-modal-dialog\"> <div class=\"am-modal-hd\">"+title+"</div><div class=\"am-modal-bd\">"+msg+" </div><div class=\"am-modal-footer\"><span class=\"am-modal-btn\">"+btn+"</span></div></div></div>";
            $("#alertModal").remove();
            $("body").append(dom);
            $("#alertModal").modal("open");
        }
    })

}($))